﻿@{
    if (Html.ViewContext.IsChildAction)
    {
        Layout = null;
    }
    else if (new string[] { "Location" }.Contains(Html.ViewContext.RouteData.Values["controller"]))
    {
        Layout = "~/Views/Shared/_Settings.cshtml";
    }
    else
    {
        Layout = "~/Views/Shared/_Layout.cshtml";
    }
}